package com.tucy.logistics.security.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * author: tcy
 * createDate: 2023/8/1
 * description: 登录
 */
@Setter
@Getter
public class LoginDto {

    /**
     * 用户id
     */
    @NotNull(message="[用户id]不能为空")
    @ApiModelProperty("用户id")
    private Long id;

    @NotBlank(message="[用户账号]不能为空")
    @Size(max= 40,message="编码长度不能超过40")
    @ApiModelProperty("用户账号")
    @Length(max= 40,message="编码长度不能超过40")
    private String account;

    @NotBlank(message="[用户密码]不能为空")
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("用户密码")
    @Length(max= 255,message="编码长度不能超过255")
    private String password;

    @ApiModelProperty("验证码")
    private String code;

    @ApiModelProperty("uuid")
    private String key;

    @ApiModelProperty("新密码")
    private String newPassword;
}
